package com.shure.surdes.modules.survey.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.shure.surdes.common.base.BaseEntity;
import lombok.Data;

/**
 * 问卷答案结果json对象 tb_answer_json
 *
 * @author Shure
 * @date 2021-10-18
 */
@Data
@TableName("tb_answer_json")
public class AnswerJson extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 答案主键
     */
    @TableId(type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long anId;

    /**
     * 问卷主键
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long surveyId;

    /**
     * 答案结果，json格式存储
     */
    private String answerJson;

    /**
     * 答题人唯一标识
     */
    private String userId;

    /**
     * 答题人姓名
     */
    private String userName;

    /**
     * 设备标识
     */
    private String deviceId;

    /**
     * 数据状态
     */
    private String dataState;


}
